package oneweone.com.copyapp;

import android.content.Context;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;

import java.util.List;

/**
 * @author jzy
 * created at 2018/11/27
 * desc
 */
public class DeviceUtils {

    public static List<PackageInfo> getAppList(Context context) {
        PackageManager pm = context.getPackageManager();
        List<PackageInfo> packages = pm.getInstalledPackages(0);
        return packages;
    }
}
